﻿using System;

namespace WindowsPhone.CompactContainer.Aggregator
{
    /// <remarks />
    public class EventHandlerOptions
    {
        /// <remarks />
        public EventHandlerOptions(object eventHandler)
        {
            EventHandler = eventHandler;
        }

        /// <remarks />
        public void WithErrorHandler(Action<Exception> errorHandler)
        {
            ErrorHandler = errorHandler;
        }

        internal Action<Exception> ErrorHandler { get; set; }

        internal object EventHandler { get; set; }
    }
}
